

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>JBOSS Server [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, JBOSS,JBOSS Server Configuration,Configuration,Configuration JBOSS Server,Server Configuration,Server Configuration JBOSS">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">JBOSS Server</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="debugging_java_web_servers.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="tomcat_server_configuration.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">Consider the JBoss example below. The source code for a simple servlet is located in the directory location:</span></p>
<p class="p_TextIndentedL2"><img src="physical%20source%20tree.png" width="395" height="391" border="0" alt="physical source tree"><br>
<span class="f_TextIndentedL2">&nbsp;</span></p>
<p class="p_BodyText"><span class="f_BodyText">The binaries executed by JBOSS are located in the JAW.EAR file in this location:</span></p>
<p class="p_TextIndentedL2"><img src="physical%20binaries%20tree.png" width="379" height="153" border="0" alt="physical binaries tree"><br>
<span class="f_TextIndentedL2">&nbsp;</span></p>
<p class="p_BodyText"><span class="f_BodyText">The Enterprise Architect debugger has to be able to locate source files during debugging. To do this it also uses the CLASSPATH, searching in any listed path for a matching JAVA source file, so the CLASSPATH must include a path to the root of the package for Enterprise Architect to find the source during debugging.</span></p>
<p class="p_BodyText"><span class="f_BodyText">The following is an excerpt from the command file that executes the JBOSS server. Since the Class to be debugged is at </span><span class="f_Code">com/inventory/dto/carDTO</span><span class="f_BodyText">, </span><span class="f_BodyText">the root of this path is included in the </span><span class="f_BodyText" style="font-style: italic;">JBOSS</span><span class="f_BodyText"> classpath.</span></p>
<p class="p_Code"><span class="f_Code">RUN.BAT</span></p>
<p class="p_Code"><span class="f_Code">-------------</span></p>
<p class="p_Code"><span class="f_Code">set </span><span class="f_Code" style="color: #ff0000;">SOURCE</span><span class="f_Code">=</span><span class="f_Code" style="color: #ff0000;">C:\Benchmark\Java\JBOSS\Inventory</span></p>
<p class="p_Code"><span class="f_Code">&nbsp;</span></p>
<p class="p_Code"><span class="f_Code">set JAVAC_JAR=%JAVA_HOME%\lib\tools.jar</span></p>
<p class="p_Code"><span class="f_Code">&nbsp;</span></p>
<p class="p_Code"><span class="f_Code">if&nbsp; &quot;%JBOSS_CLASSPATH%&quot; == &quot;&quot;</span></p>
<p class="p_Code"><span class="f_Code">(</span></p>
<p class="p_Code"><span class="f_Code"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set JBOSS_CLASSPATH=%</span><span class="f_Code" style="color: #ff0000;">SOURCE</span><span class="f_Code">%;%JAVAC_JAR%;%RUNJAR%;</span></p>
<p class="p_Code"><span class="f_Code">)</span></p>
<p class="p_Code"><span class="f_Code">else</span></p>
<p class="p_Code"><span class="f_Code">(</span></p>
<p class="p_Code"><span class="f_Code"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set JBOSS_CLASSPATH=%</span><span class="f_Code" style="color: #ff0000;">SOURCE</span><span class="f_Code">%;%JBOSS_CLASSPATH%;%JAVAC_JAR%;%RUNJAR%;</span></p>
<p class="p_Code"><span class="f_Code">)</span></p>
<p class="p_Code"><span class="f_Code">&nbsp;</span></p>
<p class="p_Code"><span class="f_Code">set JAVA_OPTS=%JAVA_OPTS% </span><span class="f_Code" style="color: #ff0000;">-agentpath:&quot;c:\program files\sparx systems\ssjavaprofiler71&quot;</span></p>




            </div>
          </div>
        </div>



</div>


</body>
</html>
